package cbir;
import java.io.File;
import java.io.FilenameFilter;

import javax.swing.filechooser.FileFilter;

public class MyFileFilter extends FileFilter implements FilenameFilter{
	
	public MyFileFilter() {
		super();
	}

	@Override
	public boolean accept(File f) {
		if(f.getName().endsWith(".svn"))
			return false;
		else
			return true;
	}

	@Override
	public String getDescription() {
		return null;
	}

	@Override
	public boolean accept(File f, String s) {
		if(s.endsWith(".svn"))
			return false;
		else
			return true;
	}
		
}